Instead of GdkDisplay::init, only add the display to the display manager
in GdkDisplay::opened. This avoids spurious changes of the default
display in gtk_init() when we're trying to find the one that works and
try to open lots of different ones.
g_signal_connect (device_manager, "device-removed",
G_CALLBACK (device_removed_cb), display);
+
+ _gdk_display_manager_add_display (gdk_display_manager_get (), display);
}
static void
display->multiple_click_info = g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) g_free);
-
- _gdk_display_manager_add_display (gdk_display_manager_get (), display);
}
static void